import { createRouter, createWebHistory } from 'vue-router';
import Attractions from '../components/Attractions.vue'; // 主页组件
import CityRoutePlanner from '../components/GetCity.vue'; // 需要单独显示的组件
import CityRoutePlanner2 from '../components/GetCity2.vue'; // 需要单独显示的组件
import Sketch from '../components/Sketch.vue';
import Sketch2 from '../components/Sketch2.vue';
import Customize from '../components/Customize.vue';



const routes = [
    {
        path: '/',
        name: 'Home',
        component: Attractions,
    },
    {
        path: '/cityRoutePlanner',
        name: 'CityRoutePlanner',
        component: CityRoutePlanner,
    },
    {
        path: '/cityRoutePlanner2',
        name: 'CityRoutePlanner2',
        component: CityRoutePlanner2,
    },
    {
        path: '/sketch',
        name: 'Sketch',
        component: Sketch,
    },
    {
        path: '/sketch2',
        name: 'Sketch2',
        component: Sketch2,
    },
    {
        path: '/customize',
        name: 'Customize',
        component: Customize,
    },
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes,
});

export default router;